package edu.hcmus.sow.dao;

import java.util.List;

import org.hibernate.exception.DataException;
import org.springframework.dao.DataAccessException;

import edu.hcmus.sow.domain.TaskAttachment;

/**
 * DAO to manage TaskAttachment entities.
 * 
 */
public interface TaskAttachmentDAO extends GenericDAO<TaskAttachment, Integer> {

   TaskAttachment findByName(String fileName) throws DataAccessException;

   List<TaskAttachment> getAttachments(Integer taskID) throws DataException;

}